import request from '../request'
export default {
  index() {
    return request({
      url: '/admin/parameter/index',
      method: 'get'
    })
  },
  info(id) {
    return request({
      url: '/admin/parameter/info',
      method: 'get',
      params: {
        id
      }
    })
  },
  reading(id) {
    return request({
      url: '/admin/parameter/reading',
      method: 'get',
      params: {
        id
      }
    })
  },
  create(data) {
    return request({
      url: '/admin/parameter/create',
      method: 'post',
      data
    })
  },

  update(data) {
    return request({
      url: '/admin/parameter/update',
      method: 'post',
      data
    })
  },

  append(data) {
    return request({
      url: '/admin/parameter/append',
      method: 'post',
      data
    })
  },
  delete(id) {
    return request({
      url: '/admin/parameter/delete',
      method: 'get',
      params: {
        id
      }
    })
  }
}
